package com.zr.quotation.controller;

import com.zr.quotation.pojo.QuotationSelectVo;
import com.zr.quotation.service.QuotationService;
import com.zr.utils.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName QuotationController
 * @Description TODO
 * @Author xiaowei
 * @Date 2020/1/2 10:19
 * @Version 1.0
 */
@RestController
@CrossOrigin
public class QuotationController {
    @Autowired
    private QuotationService quotationService;
    @PostMapping("quotationList/searchPre")
    public ResultVo searchPre(@RequestBody QuotationSelectVo quotationSelectVo){

        return quotationService.searchPre(quotationSelectVo);
    }
}
